package com.stillalive.blogsystem.service;

import com.stillalive.blogsystem.pojo.dataobject.BlogInfo;
import com.stillalive.blogsystem.pojo.request.AddBlogRequest;
import com.stillalive.blogsystem.pojo.request.UpdateBlogRequest;
import com.stillalive.blogsystem.pojo.response.BlogInfoResponse;
import com.stillalive.blogsystem.pojo.response.UserInfoResponse;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    BlogInfo getBlogInfo(Integer blogId);

    boolean addBlog(AddBlogRequest addBlogRequest);

    Boolean updateBlog(UpdateBlogRequest updateBlogRequest);

    Boolean deleteBlog(@NotNull(message = "id不能为null..") Integer blogId);
}
